/*
 * FormatVolume.cc
 *
 *  Created on: Mar 9, 2011
 *      Author: topcoder
 */

#include "FormatVolume.h"

FormatVolume::FormatVolume(const VOLUME volume): volume_m(volume)
{
}

ostream& FormatVolume::outputFormatedVolume(ostream& os)
{
    volume_m.outputQuantityInXUnit(os,OZ);
    (volume_m%VOLUME(1,OZ)).outputQuantityInXUnit(os,TBSP);
    (volume_m%VOLUME(1,TBSP)).outputQuantityInXUnit(os,TSP);

    return os;
}

